#!/usr/bin/node

const Writeable = require('stream').Writeable;

let  c  = 'a'.charCodeAt(0);//转成ASCII码


Function GreenStream() {
  Writeable.call(this);
  this._write(chunk, encoding, callback) => {
    process.stdout.write('\033[1;32m' + 'hello world!' + '\033[1;37m');

    callback();
  };
};

GreenStream.prototype = Writeable.prototype;




